package jsyf.oa.dao.system;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import jsyf.oa.entity.system.User2RoleEntity;
import jsyf.oa.idao.BaseDao;
import jsyf.oa.ientity.IBaseEntity;
import org.springframework.stereotype.Repository;

/**
 * @author: 徐波
 * @creat: 2017/11/23 0023 9:59
 * description:
 */
@Repository
public class User2RoleDao extends BaseDao {

    public User2RoleDao() {
        this.iBaseEntity = new User2RoleEntity();
    }

    @Override
    public IBaseEntity convertJson2Entity(JSONObject json) {
        return  JSON.toJavaObject(json, User2RoleEntity.class);
    }
}
